package com.satan.core.cfg;

import org.apache.commons.lang3.StringUtils;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * Created by tain on 15/11/7.
 */
//@ConfigurationProperties(prefix="application",locations = "classpath*:resources/application.properties")
@Component
public class AppCfg {
    //@Value("#{configuProperties['protocol']}")
    private String protocol  = StringUtils.EMPTY;
    //@Value("#{configuProperties['port']}")
    private String port = StringUtils.EMPTY;
    //@Value("#{configuProperties['prefix']}")
    private  String preFix = StringUtils.EMPTY;

    /**
     * 支持的协议
     */
    public String getProtocol() {
        return protocol;
    }

    public void setProtocol(String protocol) {
        this.protocol = protocol;
    }

    /**
     * 端口
     */
    public String getPort() {
        return port;
    }

    public void setPort(String port) {
        this.port = port;
    }

    /**
     * 前缀
     */
    public String getPreFix() {
        return preFix;
    }

    public void setPreFix(String preFix) {
        this.preFix = preFix;
    }
}
